<?php
namespace app\manager\model;

use think\Model;

class CarCountries extends \think\Model
{

    
    protected $table = 'car_countries';
    
    
    

    public function getCountriesList(){
        return self::select();
    }

    public function getCarCountriesLists()
    {
        return $this->select();
    }

    public function createCarCountry($post_carcountry_info)
    {
        return $this->create($post_carcountry_info);
    }

    /**
     * 获取房车国别信息
     * @param  [type] $getTypeArray [description]
     * @return [type]               [description]
     */
    public function getCarCountryInfo($getTypeArray)
    {
        return self::get($getTypeArray);
    }

    public function updateCarCountry($id, $post_carcountry_info)
    {
        return $this->where('id',$id)->update($post_carcountry_info);
    }

    public function delInfo($id)
    {
        $result = $this->destroy($id);
        if ($result) {
            return true;
        }
        return false;
    }

}